package site.jlopen.controller.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import site.jlopen.entity.BaseResponse;

@RestController
@RequestMapping(value="/api/serving")
public class ApiServingController {
	private final Logger logger = LoggerFactory.getLogger(getClass());
	
	@PostMapping(value = "/create" )
	public BaseResponse<String> create() {
		logger.info("预测接口调用");
		return new BaseResponse<String>().success("成功");
	}
	
	@PostMapping(value = "/update" )
	public BaseResponse<String> update() {
		logger.info("预测接口调用");
		return new BaseResponse<String>().success("成功");
	}
	
	@PostMapping(value = "/remove" )
	public BaseResponse<String> remove() {
		logger.info("预测接口调用");
		return new BaseResponse<String>().success("成功");
	}
	
	@PostMapping(value = "/status" )
	public BaseResponse<String> status() {
		logger.info("预测接口调用");
		return new BaseResponse<String>().success("成功");
	}
	
	@PostMapping(value = "/info" )
	public BaseResponse<String> info() {
		logger.info("预测接口调用");
		return new BaseResponse<String>().success("成功");
	}
}